package com.tac.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
@Data
public class Integral {
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long id;

    /**
     * 用户id
     */
    @JsonFormat(shape = JsonFormat.Shape.STRING)
    private Long userId;

    /**
     * 事件
     */
    @TableField(value = "`event`")
    private String event;

    /**
     * 变化数量
     */
    @TableField(value = "`change`")
    private Long change;

    /**
     * 标识符0减1加
     */
    @ApiModelProperty("标识符0减1加")
    private int changeIdentifier;

    /**
     * 创建时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss")
    private Date createTime;


    @TableField(exist = false)
    private Long UserPhone;
}